package com.onlyxiahui.common.action.description.handler;

import org.springframework.core.MethodParameter;

import com.onlyxiahui.common.action.description.DocumentContext;
import com.onlyxiahui.common.action.description.bean.PropertyData;

/**
 * Description <br>
 * Date 2020-01-07 16:42:07<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public interface ParameterValidateHandler {

	/**
	 * 
	 * Description <br>
	 * Date 2020-04-10 14:32:22<br>
	 * 
	 * @param context
	 * @param propertyData
	 * @param parameter
	 * @return
	 * @since 1.0.0
	 */
	public boolean support(DocumentContext context, PropertyData propertyData, MethodParameter parameter);

	/**
	 * 
	 * Description <br>
	 * Date 2020-04-10 14:32:17<br>
	 * 
	 * @param context
	 * @param propertyData
	 * @param parameter
	 * @since 1.0.0
	 */
	public void handle(DocumentContext context, PropertyData propertyData, MethodParameter parameter);
}
